home *** CD-ROM | disk | FTP | other *** search
- Path: phcoms4.seri.philips.nl!server10!aaltenm
- From: aaltenm@server10.seri.philips.nl (Aalten P.M. van)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: OpenScreen (need help)
- Date: 16 Feb 1996 07:58:43 GMT
- Organization: Philips Electronics BV.
- Distribution: world
- Message-ID: <4g1dfj$m09@phcoms4.seri.philips.nl>
- References: <4fvg6f$djf@toad.stack.urc.tue.nl>
- NNTP-Posting-Host: host-153-39.ce.philips.nl
- X-Newsreader: Tin 1.1 PL4
-
- jaco@stack.urc.tue.nl (Jaco Schoonen) writes:
- : Juergen "Rally" Fischer (fischerj@informatik.tu-muenchen.de) wrote:
- :
- :
- : : |>
- : : |> Why don't you use the constants defined in the includes? Much more
- : : |> system-friendly...
- :
- : : huh ? he asked for how to use openscreen. what is sytem unfriendly ?
- :
- : Yeah right, it's just better to keep the constant names in your source
- : instead of using the actual values. If those values ever change you just
- : have to recompile. Not that they will ever change, but in any case it makes
- : the source much more readable...
- :
- : --
- : Jaco Schoonen
- : (jaco@stack.urc.tue.nl)
-
- Euhhh... WOW! I always thought I had to define PI as 3.141592653 just in case
- scientists discover a new value for PI. May I suggest PI = 2? Makes coding a
- bit easier!
-
- It is only since I've got 4Mb fastmem that I use these includes. Before that,
- adding one 'include' command in my asm program would include 30 other files,
- using a total of 300kb of memory. Making a constants-list at the top of the
- source was an alternative, but when you're a bit lazy like I am, you just put
- the values right in the source. This does result in a less readable source...
-
- So... my advice: if you have enough memory, include the include-files. If you
- don't, make a constants-list at the top of your source.
-
- Greetings,
-
- Matthijs van Aalten,
- E-mail: aaltenm@iclab.ce.philips.nl
-
-